package com.ruge.act;

import lombok.extern.slf4j.Slf4j;
import org.activiti.engine.delegate.DelegateTask;
import org.activiti.engine.delegate.TaskListener;
import org.springframework.stereotype.Component;

import java.util.Arrays;

@Slf4j
@Component
public class ZjlTaskListener implements TaskListener {
    @Override
    public void notify(DelegateTask delegateTask) {
        delegateTask.addCandidateUsers(Arrays.asList("ZJL_1","ZJL_2","ZJL_3","ZJL_4"));
        System.out.println("总经理审批任务监听器..."+delegateTask.getCandidates());
    }
}
